Release 10.1A: OpenEdge Development:
Web Services
WSDL and the Web service interface
Most Web service providers publicize and describe the public interface to their Web services using WSDL. OpenEdge requires that you have access to a valid WSDL file that describes the Web service you need to access. The WSDL file that you obtain from the Web service provider provides accurate information on the Web service interface, including the interface definition of Web service operations and the precise binding requirements to physically access the Web service on the network from your 4GL application. For more information on WSDL and Web services architecture, see the sections on OpenEdge support for Web services in OpenEdge Getting Started: Application and Integration Services . The following sections provide an overview of WSDL and how OpenEdge makes use of WSDL to make accessing Web services easier from the 4GL.
Note: Web services do not generally require that you have a WSDL file to access them. However, the Progress 4GL does require this file for both development and run-time access to the Web service.WSDL—an overview
If you have built Web services in the 4GL, you might already be familiar with the basic structure of a WSDL file and how OpenEdge uses it to define 4GL Web services (see Chapter 2 "WSDL and Web Service Objects in Progress 4GL Web Services"). This section describes a WSDL file more generically, as it might define any Web service you might want to access from the 4GL.
Note: Accessing some Web services requires little, if any, knowledge of WSDL. However, for complex Web services, you must have a basic understanding of WSDL to make full use of the Web service and to access its data appropriately.A single WSDL file describes a single Web service and contains a series of major sections that define features of the Web service interface, from data and operations to the binding information needed to access the Web service on the network. Each section is defined by a corresponding WSDL element.
Table 1–1 lists and describes these major WSDL sections in the order that they appear in a WSDL file.
Note: This information is similar to the description of WSDL file sections provided for Progress 4GL Web services (see Chapter 2 "WSDL and Web Service Objects in Progress 4GL Web Services"). However, Table 1–1 describes the WSDL sections from a more general perspective. The WSDL files that you see in the industry do not necessarily define Web services in the same way that OpenEdge uses them to define 4GL Web services.
For more information on how to use the WSDL file to help program the 4GL interface to a Web service, see Chapter 8, " Analyzing WSDL for Progress 4GL Access to Web Services." For complete information on WSDL and its meaning, see the official WSDL specification at the following URL:
OpenEdge WSDL Analyzer
OpenEdge makes accessing Web services from the 4GL much easier by providing a utility (the WSDL Analyzer) that can read the WSDL file and produce a reference guide that documents exactly how to use the 4GL to access the Web service. This guide is a series of HTML documents with hyperlinks that clearly define all Web service operations and their 4GL interfaces, including how complex Web service data types are represented in the WSDL. It also provides the binding information necessary to access the Web service on the Internet. Finally, it includes any internal WSDL file comments as documentation from the Web service provider.
To make use of the OpenEdge features that allow you to access a Web service at run time, the client application must have access to a current WSDL file for the Web service you want to use. Using the reference output is optional, but highly recommended to most effectively structure your code to access the Web service. The way OpenEdge interprets the run-time invocation of Web service operations is consistent with the WSDL Analyzer processing to produce its reference documentation. For an example of how the WSDL Analyzer can help you to program your 4GL interaction with a Web service, see the "Interacting with a Web service and its operations" section. For more information on WSDL, how the 4GL maps Web services based on WSDL, and how you can use the WSDL Analyzer to help you write the necessary 4GL, see Chapter 8, " Analyzing WSDL for Progress 4GL Access to Web Services."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |